package gw.com.android.ui.bulletin;

import com.gwtsz.gts2.hx.R;

/**
 * @author jett
 * @since 2018-07-27.
 */
public class NotifyCategoryData {

    final int icon;
    final int typeId;
    final String name;
    int unreadCount;
    NotifyData notice;

    NotifyCategoryData(int typeId, String name) {
        this.typeId = typeId;
        this.name = name;
        if ("行情提醒".equals(name)) {
            this.icon = R.mipmap.a_news_icon_01;
        } else if ("交易策略".equals(name)) {
            this.icon = R.mipmap.a_news_icon_02;
        } else if ("分析师订阅".equals(name)) {
            this.icon = R.mipmap.a_news_icon_04;
        } else if ("互动提醒".equals(name)) {
            this.icon = R.mipmap.a_news_icon_05;
        } else {
            this.icon = R.mipmap.a_news_icon_03;
        }
        /*if (index == 0) {
            this.icon = R.mipmap.a_news_icon_01;
        } else if (index == 1) {
            this.icon = R.mipmap.a_news_icon_02;
        } else if (index == 3) {
            this.icon = R.mipmap.a_news_icon_04;
        } else if (index == 4) {
            this.icon = R.mipmap.a_news_icon_05;
        } else {
            this.icon = R.mipmap.a_news_icon_03;
        }*/
    }

}
